package com.liao.learntest.job;

import java.util.Set;

/**
 * @author: liaowenqiang
 * @date: 2024/11/16 13:59
 * @description: job
 **/
public class SettlementJobService {



    public void createJobs(String settlementId){
        Set<SettlementStatusEnum> settlementStatusEnums = SettlementBusinessServiceFactory.getSettlementStatusEnums();
        // 根据顺序生成job
        for (int i = 0; i < settlementStatusEnums.size(); i++) {

        }
    }

    public void notifyRuning(String settlementId) {
        // order by sortNo asc,【已唤醒、执行失败】
        // 等待唤醒，已唤醒，执行中，执行成功，执行失败
        // 发送mq消息
    }

    public SettlementJobEntity getById(String id){
        return null;
    }

    public void sendMqMessage(String id) {
        //触发mq
    }

    public SettlementJobEntity getByStatusEnumAndSettlementId(String settlementId, SettlementStatusEnum nextSettlementStatusEnum) {
        return null;
    }
}
